//
//  FirstVC.swift
//  18.3 tabbar
//
//  Created by 李煜 on 2024/6/26.
//

import UIKit

class FirstVC: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = .white
        title = "FirstVC"
        //ios 13
//        let image = UIImage(systemName: "pencil")?.withRenderingMode(.alwaysOriginal).withTintColor(.purple)
//        let image = UIImage(systemName: "pencil")?.withTintColor(.purple).withRenderingMode(.alwaysOriginal)
        
        if #available(iOS 13.0, *) {
            let image = UIImage(systemName: "pencil")?.withTintColor(.purple, renderingMode: .alwaysOriginal)
            let imageView = UIImageView(image: image)
            //        imageView.tintColor
            
            imageView.frame = .init(x: 100, y: 100, width: 200, height: 200)
            view.addSubview(imageView)
        } else {
            // Fallback on earlier versions
        }
        
    }


}

